package cn.silver.module.oss.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "oss_share")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "OssShare", title = "对象存储管理-文件分享信息")
public class OssShare extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 批次号
     */
    @Schema(title = "批次号")
    private String batchNo;
    /**
     * 分享人
     */
    @Schema(title = "分享人")
    private String userId;
    /**
     * 分享类型
     */
    @Schema(title = "分享类型")
    private String shareType;
    /**
     * 分享状态
     */
    @Schema(title = "分享状态")
    private String shareStatus;
    /**
     * 分享时间
     */
    @Schema(title = "分享时间")
    private Date shareTime;
    /**
     * 失效时间
     */
    @Schema(title = "失效时间")
    private Date expiryTime;
    /**
     * 提取链接
     */
    @Schema(title = "提取链接")
    private String extractUrl;
    /**
     * 提取码
     */
    @Schema(title = "提取码")
    private String extractCode;
}
